function RxFindText(title, fonttext, tab, size, deviationColor, istouch)
  local index = addTSOcrDictEx(tab)
  --请自行更改参数
  --1: 0,0,0,0 范围坐标，请自行修改
  --2: "FFFBD4 , 061936" 偏色,多组或单组.请在偏色列表中选择
  --3: 90 匹配精度 【0-100】
  local x1, y1, x2, y2 = size[1], size[2], size[3], size[4]

  local x, y = tsFindText(index, fonttext, x1, y1, x2, y2, deviationColor, 90)
  local ctn = 0
  if x ~= -1 then
    if istouch then
      if title then
        RxToast("点击_".. title)
      end
      -- dialog('RxFindText x='..x..' y='..y, 1000) --测试
      RxTouch(x + 30, y + 30)
    end
    ctn = 1
  end
  return ctn, x, y
end

function RxFindTextTable(table) -- 没有点击事件，仅查找坐标
  local x1, y1, x2, y2 = RxLocationTableScale(table)
  local size = {x1, y1, x2, y2}
  return RxFindText(table.title, table.font, table.tab, size, table.deviationColor, false)
end

function RxFindTextTouchTable(table) -- 查找坐标，并点击
  local x1, y1, x2, y2 = RxLocationTableScale(table)
  local size = {x1, y1, x2, y2}
  -- RxTestSize({x1, y1, x2, y2}) -- 测试
  -- RxTestToastSize({x1, y1, x2, y2}) -- 测试
  return RxFindText(table.title, table.font, table.tab, size, table.deviationColor, true)
end
